<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;


/**
 * App\Models\ShopAuth
 *
 * @property int $id
 * @property int $shop_id 店铺ID
 * @property string $owner_name 店主姓名
 * @property string $id_card_no 店主身份证号
 * @property string $id_card_pic_1 身份证正面照
 * @property string $id_card_pic_2 身份证背面照
 * @property string $id_card_pic_3 手持身份证照
 * @property string $license_no 营业执照号码
 * @property string $license_pic 营业执照照片
 * @property string $other_pic 其它证件照片
 * @property string $scope 经营范围
 * @property string $status
 * @property mixed $created_at
 * @property mixed $updated_at
 * @property-read \App\Models\Shop $shop
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopAuth newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopAuth newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopAuth query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopAuth whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopAuth whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopAuth whereIdCardNo($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopAuth whereIdCardPic1($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopAuth whereIdCardPic2($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopAuth whereIdCardPic3($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopAuth whereLicenseNo($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopAuth whereLicensePic($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopAuth whereOtherPic($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopAuth whereOwnerName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopAuth whereScope($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopAuth whereShopId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopAuth whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopAuth whereUpdatedAt($value)
 * @mixin \Eloquent
 */
class ShopAuth extends Model
{
    protected $table = 'shop_auth';
    protected $primaryKey = 'shop_id';
    protected $fillable = [
        'uid', 'shop_id', 'owner_name', 'id_card_no', 'id_card_pic_1', 'id_card_pic_2', 'id_card_pic_3',
        'license_no', 'license_pic', 'other_pic', 'scope', 'status'
    ];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function shop()
    {
        return $this->belongsTo(Shop::class, 'shop_id', 'shop_id');
    }
}
